home *** CD-ROM | disk | FTP | other *** search
- Path: news.hds.co.uk!john
- From: Gary Walsh <Gary_Walsh@spire.hds.co.uk>
- Newsgroups: comp.lang.c,comp.unix.programmer,comp.unix.questions,comp.unix.misc
- Subject: Re: Passing arguments when debugging with dbx
- Date: 16 Jan 1996 17:15:38 GMT
- Organization: Hitachi Data Systems
- Message-ID: <4dgmfq$q4v@willow.hds.co.uk>
- References: <DL2vJ6.M2F@novice.uwaterloo.ca>
- NNTP-Posting-Host: hdsep.hds.co.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- jching@novice.uwaterloo.ca (Jonathan Ching) wrote:
- >Hi,
- >
- >I was wondering how you go about passing arguments into my program if
- >I'm debugging it with dbx? I've read the man pages and I still can't
- >figure it out, unless I missed it.
- >
- >For example, if my program takes two arguments like:
- >
- >myprogram arg1 arg2
- >
- >How would I put arg1 and arg2 on the command line when I invoke dbx without
- >dbx thinking that they were arguments for dbx?
- >
- >I've tried using "assign" after I start dbx, but it causes a lot of type errors.
- >
- >Can anyone help?
- >
-
- Invoke dbx as 'dbx myprogram', then at the dbx prompt issue the command
- 'run arg1 arg2'. To run it again with the same args use 'rerun'.
-
- Gary
- --
- _____________________________________________________________________
- Gary Walsh E-mail: Gary_Walsh@spire.hds.co.uk
- Open Systems Product Specialist Phone: +44 1753 618806
- Hitachi Data Systems Fax: +44 1753 618576
- Sefton Park
- Stoke Poges Disclaimer: My views, not HDS'
- Buckinghamshire SL2 4HD
- England
- _____________________________________________________________________
-
-
-